package cn.momoshenchi.mapper;

import cn.momoshenchi.pojo.Article;
import cn.momoshenchi.pojo.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @Entity cn.momoshenchi.pojo.Book
 */
public interface BookMapper extends BaseMapper<Book>
{

    /**
     * 对title和description字段进行模糊查询
     * @param keyword
     * @return
     */
    List<Book> search(String keyword);
}




